package com.yic.module.qms.api.inspectscheme;

import com.yic.module.qms.api.inspectscheme.dto.InspectSchemeRespDTO;
import com.yic.module.qms.convert.inspectscheme.InspectSchemeConvert;
import com.yic.module.qms.dal.dataobject.inspectscheme.InspectSchemeDO;
import com.yic.module.qms.service.inspectscheme.InspectSchemeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: Ljx
 * @createTime: 2023年12月07日 14:08:27
 * @version: v1.0.0
 * @Description: 检验方案实现类
 */
@Service
public class InspectSchemeApiImpl implements InspectSchemeApi{

    @Resource
    private InspectSchemeService inspectSchemeService;


    @Override
    public InspectSchemeRespDTO getInspectScheme(Long id) {
        if (id == null) {
            return null;
        }
        InspectSchemeDO inspectScheme = inspectSchemeService.getInspectScheme(id);
        return InspectSchemeConvert.INSTANCE.convert02(inspectScheme);
    }
}
